<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ResourceReportDataSet" targetNamespace="http://tempuri.org/ResourceReportDataSet.xsd" xmlns:mstns="http://tempuri.org/ResourceReportDataSet.xsd" xmlns="http://tempuri.org/ResourceReportDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="FactoryConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="FactoryConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.BadHabit.Factory.Data.Properties.Settings.GlobalReference.Default.FactoryConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AssigneeEffortByMonthTableAdapter" GeneratorDataComponentClassName="AssigneeEffortByMonthTableAdapter" Name="AssigneeEffortByMonth" UserDataComponentName="AssigneeEffortByMonthTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FactoryConnectionString (Settings)" DbObjectName="Factory.factory.AssigneeEffortByMonth" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT month, year, TaskAssignee, MonthWorkedHours FROM factory.AssigneeEffortByMonth</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="month" DataSetColumn="month" />
              <Mapping SourceColumn="year" DataSetColumn="year" />
              <Mapping SourceColumn="TaskAssignee" DataSetColumn="TaskAssignee" />
              <Mapping SourceColumn="MonthWorkedHours" DataSetColumn="MonthWorkedHours" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FactoryConnectionString (Settings)" DbObjectName="Factory.factory.AssigneeEffortByMonth" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByMonth" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByMonth" GeneratorSourceName="FillByMonth" GetMethodModifier="Public" GetMethodName="GetDataByMonth" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByMonth" UserSourceName="FillByMonth">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT month, year, TaskAssignee, MonthWorkedHours FROM factory.AssigneeEffortByMonth
where [month]  = @month and [year] = @year</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="month" ColumnName="month" DataSourceName="Factory.factory.AssigneeEffortByMonth" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@month" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="month" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="year" ColumnName="year" DataSourceName="Factory.factory.AssigneeEffortByMonth" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@year" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="year" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FactoryConnectionString (Settings)" DbObjectName="Factory.factory.AssigneeEffortByMonth" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByTaskAssignee" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByTaskAssignee" GeneratorSourceName="FillByTaskAssignee" GetMethodModifier="Public" GetMethodName="GetDataByTaskAssignee" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByTaskAssignee" UserSourceName="FillByTaskAssignee">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT month, year, TaskAssignee, MonthWorkedHours FROM factory.AssigneeEffortByMonth WHERE TaskAssignee = @TaskAsignee</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="TaskAsignee" ColumnName="TaskAssignee" DataSourceName="Factory.factory.AssigneeEffortByMonth" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@TaskAsignee" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="TaskAssignee" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FactoryConnectionString (Settings)" DbObjectName="Factory.factory.AssigneeEffortByMonth" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillMaxByMonth" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetMaxDataByMonth" GeneratorSourceName="FillMaxByMonth" GetMethodModifier="Public" GetMethodName="GetMaxDataByMonth" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetMaxDataByMonth" UserSourceName="FillMaxByMonth">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>
                      select * from factory.AssigneeEffortByMonth
                      where (MonthWorkedHours =
                      (select max(MonthWorkedHours) from factory.AssigneeEffortByMonth
                      where [year]=@year and [month]=@month))
                      and [year]=@year and [month]=@month</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="year" ColumnName="year" DataSourceName="Factory.factory.AssigneeEffortByMonth" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@year" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="year" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="month" ColumnName="month" DataSourceName="Factory.factory.AssigneeEffortByMonth" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@month" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="month" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="ResourceReportDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="ResourceReportDataSet" msprop:Generator_DataSetName="ResourceReportDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="AssigneeEffortByMonth" msprop:Generator_UserTableName="AssigneeEffortByMonth" msprop:Generator_RowDeletedName="AssigneeEffortByMonthRowDeleted" msprop:Generator_RowChangedName="AssigneeEffortByMonthRowChanged" msprop:Generator_RowClassName="AssigneeEffortByMonthRow" msprop:Generator_RowChangingName="AssigneeEffortByMonthRowChanging" msprop:Generator_RowEvArgName="AssigneeEffortByMonthRowChangeEvent" msprop:Generator_RowEvHandlerName="AssigneeEffortByMonthRowChangeEventHandler" msprop:Generator_TableClassName="AssigneeEffortByMonthDataTable" msprop:Generator_TableVarName="tableAssigneeEffortByMonth" msprop:Generator_RowDeletingName="AssigneeEffortByMonthRowDeleting" msprop:Generator_TablePropName="AssigneeEffortByMonth">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="month" msprop:Generator_UserColumnName="month" msprop:Generator_ColumnPropNameInRow="month" msprop:Generator_ColumnVarNameInTable="columnmonth" msprop:Generator_ColumnPropNameInTable="monthColumn" type="xs:int" minOccurs="0" />
              <xs:element name="year" msprop:Generator_UserColumnName="year" msprop:Generator_ColumnPropNameInRow="year" msprop:Generator_ColumnVarNameInTable="columnyear" msprop:Generator_ColumnPropNameInTable="yearColumn" type="xs:int" minOccurs="0" />
              <xs:element name="TaskAssignee" msprop:Generator_UserColumnName="TaskAssignee" msprop:Generator_ColumnPropNameInRow="TaskAssignee" msprop:Generator_ColumnVarNameInTable="columnTaskAssignee" msprop:Generator_ColumnPropNameInTable="TaskAssigneeColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MonthWorkedHours" msprop:Generator_UserColumnName="MonthWorkedHours" msprop:Generator_ColumnPropNameInRow="MonthWorkedHours" msprop:Generator_ColumnVarNameInTable="columnMonthWorkedHours" msprop:Generator_ColumnPropNameInTable="MonthWorkedHoursColumn" type="xs:double" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>